package com.itheima.day13work;

public class Desk {
    private int count;
    private boolean flag;
    private  final Object obj=new Object();

    public Desk() {
        this(5,false);
    }

    public Desk(int count, boolean flag) {
        this.count = count;
        this.flag = flag;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Object getObj() {
        return obj;
    }
}
